/**
 * Created by badguy陈 on 2016/11/9.
 */
var tanchu={
    //c错误弹出
    error:function (message) {
        layer.open({
            content:message,
            icon:2,
            title:'错误提示',
        });
    },
    //成功弹出层
    success:function (message,url) {
        layer.open({
            content:message,
            icon:1,
            yes:function(){
                location.href=url;
            },
        });
    },
    //确认弹出层
    queren:function (message,url) {
        layer.confirm({
            content:message,
            icon:2,
            btn:['确定','取消'],
            yes:function(){
                location.href=url;
            },
        });
    },
     //c跳转弹出
    
    tiao:function (message,url) {
        layer.open({
            content:message,
            icon:2,
            title:'错误提示',
            yes:function(){
                location.href=url;
            },
        });
    },

}
